package grailsworkshop2012_1_g

class View2Controller {

    def index = {
        redirect(action:"view2")
    }
    
    def view2 = {
        def trips = Trip.list()
        [trips:trips]
    }
}